//
//  YNHttpTool.h
//  gold_ios_carteam
//
//  Created by 张伟 on 2018/5/22.
//  Copyright © 2018年 张伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
@interface YNHttpTool : NSObject

+(instancetype)sharedManager;

//get 请求
-(void)getPath:(NSString *)path parameters:(NSDictionary *)parameters success:(void(^)(id responseObject))rblock andError:(void(^)(NSError *error))eblock;
//POST 请求
-(void)postPath:(NSString *)path parameters:(NSDictionary *)parameters success:(void(^)(id responseObject))rblock andError:(void(^)(NSError *error))eblock;

-(void)setHeader:(AFHTTPSessionManager *)manager parameter:(NSDictionary *)parameter;
@end
